//
//  main.c
//  求两个数二进制中不同位的个数
//
//  Created by 卜绎皓 on 2022/2/22.
//

#include <stdio.h>

int main(){
    int a,b,c = 0;
    scanf("%d %d",&a,&b);
    int d = a^b;
    while (d!=0) {
        if(d%2 == 1){
            c++;
        }
        d = d>>1;
    }
    printf("%d",c);
    return 0;
}
